/**
 * 声明对象类型
 */
let person: {
  name: string
  age?: number
  [key: string]: any
}

person = { name: "张三" }
person = { name: "张三", age: 11 }
person = { name: "张三", age: 11, sex: "男" }
